cmake_minimum_required(VERSION 3.10)
project(PIMS)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)

find_package(Qt6 REQUIRED COMPONENTS Core Widgets Sql)

add_executable(PIMS
    src/main.cpp
    src/database.cpp
    src/database.h
    src/mainwindow.cpp
    src/mainwindow.h
    src/newitemdialog.cpp
    src/newitemdialog.h
)

target_link_libraries(PIMS PRIVATE Qt6::Core Qt6::Widgets Qt6::Sql)